package 类加载顺序;

public class Test {
    public static void main(String[] args) {
        MyClassA classA = MyClassA.getInstance();
        int a1 = classA.getA();
        int b1 = classA.getB();
        System.out.println("MyClassA a1==" + a1);
        System.out.println("MyClassA b1==" + b1);
        int a = MyClassA.getA();
        int b = MyClassA.getB();
        System.out.println("MyClassA a==" + a);
        System.out.println("MyClassA b==" + b);

    }
}
